/*
 * @Author: bsj
 * @Date: 2024-04-07
 * @LastEditors: baoshijie
 * @LastEditTime: 2024-07-30
 * @Description: file content
 * @FilePath: \bridge_web\src\api\bridge.js
 */
import request from "@/utils/request";

// 航班列表查询
export function flightList(params) {
  return request({
    url: $API.flightListAirport,
    method: "get",
    params: params,
  });
}

// 静态机位列表
export function standList(params) {
  return request({
    url: $API.standList,
    method: "get",
    params: params,
  });
}
// 取消处理
export function cancel(params) {
  return request({
    url: $API.cancel,
    method: "get",
    params: params,
  });
}

// 数据导入
export function initStand(data) {
  return request({
    url: $API.initStand,
    method: "post",
    data: data,
    headers: {
      "Content-type": "multipart/form-data",
    },
  });
}

// 靠桥率测算 机场
export function calAirportDataAirport(params) {
  return request({
    url: $API.calAirportDataAirport,
    method: "get",
    params: params,
  });
}

// 靠桥率测算  局方
export function calShareDataShare(params) {
  return request({
    url: $API.calShareDataShare,
    method: "get",
    params: params,
  });
}

// 静态机位查询
export function standSearch(params) {
  return request({
    url: $API.stand,
    method: "get",
    params: params,
  });
}

// 静态机位新增
export function standAdd(data) {
  return request({
    url: $API.stand,
    method: "post",
    data: data,
  });
}

// 静态机位修改
export function standPut(data) {
  return request({
    url: $API.stand,
    method: "put",
    data: data,
  });
}
// 静态机位删除
export function standDelete(params) {
  return request({
    url: $API.stand,
    method: "delete",
    params: params,
  });
}
// 靠桥率查询
export function bridgeRate(params) {
  return request({
    url: $API.bridgeRate,
    method: "get",
    params: params,
  });
}

// 静态机位新增
export function assignFlight(data) {
  return request({
    url: $API.assignFlight,
    method: "post",
    data: data,
  });
}
export function arrOrDepRecordList(params) {
  return request({
    url: $API.arrOrDepRecordList,
    method: "get",
    params: params,
  });
}

export function downloadFile(params) {
  return request({
    url: $API.download,
    method: "get",
    params: params,
    
  });
}

//机位下拉模糊查询
export function fuzzyStandFun(params) {
  return request({
    url: $API.fuzzyStand,
    method: "get",
    params: params,
    
  });
}
// 批量分配机位列表
export function batchOperationList(params) {
  return request({
    url: $API.batchOperationList,
    method: "get",
    params: params,
    
  });
}

// 批量分配保存
export function saveAssignFlight(data) {
  return request({
    url: $API.saveAssignFlight,
    method: "post",
    data: data,
  });
}

// 操作记录查询
export function getOptList(params) {
  return request({
    url: $API.getOptList,
    method: "get",
    params: params,
    
  });
}